import request from '@/utils/request'

export function getZCOverviewData(query) {
  return request({
    url: '/swla2/biZbx/getZCOverviewData',
    method: 'get',
    params: query
  })
}

export function getOverviewData(query) {
  return request({
    url: '/swla2/biZbx/getOverviewData',
    method: 'get',
    params: query
  })
}

export function getDfqKpiData(query) {
  return request({
    url: '/swla2/biZbx/getDfqKpiData',
    method: 'get',
    params: query
  })
}


export function getDMAKpiData(query) {
  return request({
    url: '/swla2/biZbx/getDMAKpiData',
    method: 'get',
    params: query
  })
}


// 查询BI指标值列表
export function listBiZbx(query) {
  return request({
    url: '/swla2/biZbx/list',
    method: 'get',
    params: query
  })
}

// 查询BI指标值详细
export function getBiZbx(ID) {
  return request({
    url: '/swla2/biZbx/' + ID,
    method: 'get'
  })
}

// 新增BI指标值
export function addBiZbx(data) {
  return request({
    url: '/swla2/biZbx',
    method: 'post',
    data: data
  })
}

// 修改BI指标值
export function updateBiZbx(data) {
  return request({
    url: '/swla2/biZbx',
    method: 'put',
    data: data
  })
}

// 删除BI指标值
export function delBiZbx(ID) {
  return request({
    url: '/swla2/biZbx/' + ID,
    method: 'delete'
  })
}
